package top.ibiji.shiro.constants;


import io.jsonwebtoken.Claims;

public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";
    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";
    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Login Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Login Error";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY_PREFIX = "login_user_key_prefix";
    /**
     * 用户名称
     */
    public static final String TOKEN_USERNAME = "username";

    public static final String TOKEN_USERNAME_Claims = Claims.SUBJECT;

    /**
     * 过期时间
     */
    public static final long EXPIRE_TIME = 60 * 1000;

    public static final long REDIS_EXPIRE_TIME = 60;

    /**
     * jwt 秘钥
     */
    public static final String JWT_SECRET = "abcdefg";

    public static final String JWT_AUTHORITIES = "authorities";

    public static final String JWT_USER_LOGIN_TIME = "user_login_time";

    public static final String FINDPAGEE = "findPage";

}
